package br.com.ifsp.salto.matriculadp.negocio;

import org.springframework.beans.factory.annotation.Autowired;

import br.com.caelum.vraptor.ioc.Component;
import br.com.ifsp.salto.matriculadp.negocio.to.Sessao;

@Component
class LoginFacade implements ILoginFacade {
	
	private LoginBO loginBO;

	/**
	 * Setup de loginBO chamado e configurado pelo Spring framework
	 * 
	 * @param loginBO
	 *            ILoginBO configurado de acordo com o spring framework
	 */
	@Autowired
	public void setLoginBO(LoginBO loginBO) {
		this.loginBO = loginBO;
	}

	
	/* (non-Javadoc)
	 * @see br.com.ifsp.salto.matriculadp.negocio.ILoginFacade#login(java.lang.String, java.lang.String)
	 */
	public Sessao login(String prontuario, String senha) {
		return loginBO.login(prontuario, senha);
	}

}
